package isjinhao.jlox.grammar.expression.represention;

import isjinhao.jlox.grammar.expression.visitor.ExpressionVisitor;
import lombok.Getter;

/**
 * @Author ISJINHAO
 * @Date 2021/2/20 21:25
 */
@Getter
public class Grouping extends Expression {

    public Grouping(Expression expression) {
        this.expression = expression;
    }

    @Override
    public <R> R accept(ExpressionVisitor<R> expressionVisitor) {
        return expressionVisitor.visitGroupingExpr(this);
    }

    private final Expression expression;

}